home *** CD-ROM | disk | FTP | other *** search
- /*
- File: TApplication.h
-
- Contains: xxx put contents here xxx
-
- Written by: Tim Harnett
-
- Copyright: © 1994 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <5> 12/12/94 TMH use of thread events
- <4> 10/20/94 TMH validate system configuration
- <3> 10/14/94 TMH fixed AppleEvent dispatching to work correctly
- <2> 10/6/94 JHB Added support for Gestalt checking
- <1> 9/20/94 TMH Abandon RoadsideRest embrace Mercury
- <2> 9/20/94 TMH some experimental but working threaded stuff
- 3/29/94 TMH xxx put comment here xxx
-
- To Do:
- */
-
-
- #ifndef __Application__
- #define __Application__
-
- class TAOCEHalfGateway;
- class THFSHalfGateway;
-
- #ifndef __OCE__
- #include "OCE.h"
- #endif
-
- #ifndef __OCEMAIL__
- #include "OCEMail.h"
- #endif
-
- class CRecordID;
- class TCooperativeThread;
- class CCheckSystemConfiguration;
- //---------------------------
- // M i s c e l l a n y
- //----------------------------
-
- #define kSleepTime 60*60
- #define kQuitFileGateResult -2
-
-
- //--------------------------------------
- // T A p p l i c a t i o n
- //--------------------------------------
-
-
- class TApplication {
- public:
- TApplication();
-
- void IApplication();
- OSErr InitAuth();
-
- void InitializeAppleEvents();
- static pascal OSErr AppleEventsDispatch(AppleEvent* message,AppleEvent* reply, long info);
-
- void Run();
- void HandleEvent(EventRecord *ev);
- void HandleHighLevelEvent(EventRecord *theEvent);
- void DoGatewayEvent(short slotID,long messageID,MailEPPCMsg* theeppc);
-
- void SetWNESleepTime(long wneSleepTime) { fWNESleepTime = wneSleepTime; }
-
- OCESetupLocation Location() { return fOCELocation; }
-
- private:
-
- long fWNESleepTime;
- TAOCEHalfGateway* fAOCEHalfGateway;
-
- CreationID fSetupRecordCID;
-
- OCESetupLocation fOCELocation;
-
- };
-
- #endif __Application__
-
-